<template>
	<view>
		<view class="uni-comment" :class="{'comment-child': lib.pid>0}">
		
			<view class="uni-comment-list">
				<view class="uni-comment-face">
					<image :src="lib.headpic" mode="widthFix"></image>
				</view>
				<view class="uni-comment-body">
					<view class="uni-comment-top">
						<text>{{lib.head}}</text>
					</view>
					<view class="uni-comment-content">
						{{lib.data}}
					</view>
					<view class="uni-comment-date">
						<text>2天前</text>
						<!-- <view class="uni-comment-replay-btn">5回复</view> -->
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props:['lib'],
		data() {
			return {
				
			}
		},
		methods: {
			
		}
	}
</script>

<style>
.uni-comment-top uni-text {
		color: #5BBAE3;
	}
	.uni-comment-date uni-text{
		color: #C0C0C0;
	}
	.comment-child{
		margin-left: 100upx;
		background:#F4F4F4 ;
		padding: 10upx;
	}
</style>
